#include <stdio.h>
#include <math.h>
double max(double a,double b){
    return a>b?a:b;
}
double kc(double a1,double a2,double b1,double b2){
    return sqrt((a1-b1)*(a1-b1)+(a2-b2)*(a2-b2));
}
int main(){
    double a,b,d,r1,r2,R1,R2,h,lech1,lech2;
    scanf("%f%f%f%f%f%f%f%f",&a,&b,&d,&r1,&r2,&R1,&R2,&h);
    if(d>h)lech1=max(r1,r2);
    else if(r1>r2)lech1=d*r1/h+r1*r2/(r1-r2);
        else lech1=r2;
    
    if(d>h) lech2=max(R1,R2);
    else if(R1>R2) lech2=d*R1/h+R1*R2/(R1-R2);
        else lech2=R2;
    
    if(lech1>a/2 || lech1>b/2 || lech2>a/2 || lech2>b/2){
        printf("-NO");
        return 0;
    }
    
    double khoangcach=kc(lech1,lech1,a-lech2,b-lech2);
    
    
    
    if(r1+R1>khoangcach || r2+R2>khoangcach)printf("NO");
    else printf("YES");
    
    return 0;
}
